package com.boot.study.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CusDevPlanExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CusDevPlanExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andSaleChanceIdIsNull() {
            addCriterion("sale_chance_id is null");
            return (Criteria) this;
        }

        public Criteria andSaleChanceIdIsNotNull() {
            addCriterion("sale_chance_id is not null");
            return (Criteria) this;
        }

        public Criteria andSaleChanceIdEqualTo(Integer value) {
            addCriterion("sale_chance_id =", value, "saleChanceId");
            return (Criteria) this;
        }

        public Criteria andSaleChanceIdNotEqualTo(Integer value) {
            addCriterion("sale_chance_id <>", value, "saleChanceId");
            return (Criteria) this;
        }

        public Criteria andSaleChanceIdGreaterThan(Integer value) {
            addCriterion("sale_chance_id >", value, "saleChanceId");
            return (Criteria) this;
        }

        public Criteria andSaleChanceIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("sale_chance_id >=", value, "saleChanceId");
            return (Criteria) this;
        }

        public Criteria andSaleChanceIdLessThan(Integer value) {
            addCriterion("sale_chance_id <", value, "saleChanceId");
            return (Criteria) this;
        }

        public Criteria andSaleChanceIdLessThanOrEqualTo(Integer value) {
            addCriterion("sale_chance_id <=", value, "saleChanceId");
            return (Criteria) this;
        }

        public Criteria andSaleChanceIdIn(List<Integer> values) {
            addCriterion("sale_chance_id in", values, "saleChanceId");
            return (Criteria) this;
        }

        public Criteria andSaleChanceIdNotIn(List<Integer> values) {
            addCriterion("sale_chance_id not in", values, "saleChanceId");
            return (Criteria) this;
        }

        public Criteria andSaleChanceIdBetween(Integer value1, Integer value2) {
            addCriterion("sale_chance_id between", value1, value2, "saleChanceId");
            return (Criteria) this;
        }

        public Criteria andSaleChanceIdNotBetween(Integer value1, Integer value2) {
            addCriterion("sale_chance_id not between", value1, value2, "saleChanceId");
            return (Criteria) this;
        }

        public Criteria andPlanItemIsNull() {
            addCriterion("plan_item is null");
            return (Criteria) this;
        }

        public Criteria andPlanItemIsNotNull() {
            addCriterion("plan_item is not null");
            return (Criteria) this;
        }

        public Criteria andPlanItemEqualTo(String value) {
            addCriterion("plan_item =", value, "planItem");
            return (Criteria) this;
        }

        public Criteria andPlanItemNotEqualTo(String value) {
            addCriterion("plan_item <>", value, "planItem");
            return (Criteria) this;
        }

        public Criteria andPlanItemGreaterThan(String value) {
            addCriterion("plan_item >", value, "planItem");
            return (Criteria) this;
        }

        public Criteria andPlanItemGreaterThanOrEqualTo(String value) {
            addCriterion("plan_item >=", value, "planItem");
            return (Criteria) this;
        }

        public Criteria andPlanItemLessThan(String value) {
            addCriterion("plan_item <", value, "planItem");
            return (Criteria) this;
        }

        public Criteria andPlanItemLessThanOrEqualTo(String value) {
            addCriterion("plan_item <=", value, "planItem");
            return (Criteria) this;
        }

        public Criteria andPlanItemLike(String value) {
            addCriterion("plan_item like", value, "planItem");
            return (Criteria) this;
        }

        public Criteria andPlanItemNotLike(String value) {
            addCriterion("plan_item not like", value, "planItem");
            return (Criteria) this;
        }

        public Criteria andPlanItemIn(List<String> values) {
            addCriterion("plan_item in", values, "planItem");
            return (Criteria) this;
        }

        public Criteria andPlanItemNotIn(List<String> values) {
            addCriterion("plan_item not in", values, "planItem");
            return (Criteria) this;
        }

        public Criteria andPlanItemBetween(String value1, String value2) {
            addCriterion("plan_item between", value1, value2, "planItem");
            return (Criteria) this;
        }

        public Criteria andPlanItemNotBetween(String value1, String value2) {
            addCriterion("plan_item not between", value1, value2, "planItem");
            return (Criteria) this;
        }

        public Criteria andPlanDateIsNull() {
            addCriterion("plan_date is null");
            return (Criteria) this;
        }

        public Criteria andPlanDateIsNotNull() {
            addCriterion("plan_date is not null");
            return (Criteria) this;
        }

        public Criteria andPlanDateEqualTo(Date value) {
            addCriterion("plan_date =", value, "planDate");
            return (Criteria) this;
        }

        public Criteria andPlanDateNotEqualTo(Date value) {
            addCriterion("plan_date <>", value, "planDate");
            return (Criteria) this;
        }

        public Criteria andPlanDateGreaterThan(Date value) {
            addCriterion("plan_date >", value, "planDate");
            return (Criteria) this;
        }

        public Criteria andPlanDateGreaterThanOrEqualTo(Date value) {
            addCriterion("plan_date >=", value, "planDate");
            return (Criteria) this;
        }

        public Criteria andPlanDateLessThan(Date value) {
            addCriterion("plan_date <", value, "planDate");
            return (Criteria) this;
        }

        public Criteria andPlanDateLessThanOrEqualTo(Date value) {
            addCriterion("plan_date <=", value, "planDate");
            return (Criteria) this;
        }

        public Criteria andPlanDateIn(List<Date> values) {
            addCriterion("plan_date in", values, "planDate");
            return (Criteria) this;
        }

        public Criteria andPlanDateNotIn(List<Date> values) {
            addCriterion("plan_date not in", values, "planDate");
            return (Criteria) this;
        }

        public Criteria andPlanDateBetween(Date value1, Date value2) {
            addCriterion("plan_date between", value1, value2, "planDate");
            return (Criteria) this;
        }

        public Criteria andPlanDateNotBetween(Date value1, Date value2) {
            addCriterion("plan_date not between", value1, value2, "planDate");
            return (Criteria) this;
        }

        public Criteria andExeAffectIsNull() {
            addCriterion("exe_affect is null");
            return (Criteria) this;
        }

        public Criteria andExeAffectIsNotNull() {
            addCriterion("exe_affect is not null");
            return (Criteria) this;
        }

        public Criteria andExeAffectEqualTo(String value) {
            addCriterion("exe_affect =", value, "exeAffect");
            return (Criteria) this;
        }

        public Criteria andExeAffectNotEqualTo(String value) {
            addCriterion("exe_affect <>", value, "exeAffect");
            return (Criteria) this;
        }

        public Criteria andExeAffectGreaterThan(String value) {
            addCriterion("exe_affect >", value, "exeAffect");
            return (Criteria) this;
        }

        public Criteria andExeAffectGreaterThanOrEqualTo(String value) {
            addCriterion("exe_affect >=", value, "exeAffect");
            return (Criteria) this;
        }

        public Criteria andExeAffectLessThan(String value) {
            addCriterion("exe_affect <", value, "exeAffect");
            return (Criteria) this;
        }

        public Criteria andExeAffectLessThanOrEqualTo(String value) {
            addCriterion("exe_affect <=", value, "exeAffect");
            return (Criteria) this;
        }

        public Criteria andExeAffectLike(String value) {
            addCriterion("exe_affect like", value, "exeAffect");
            return (Criteria) this;
        }

        public Criteria andExeAffectNotLike(String value) {
            addCriterion("exe_affect not like", value, "exeAffect");
            return (Criteria) this;
        }

        public Criteria andExeAffectIn(List<String> values) {
            addCriterion("exe_affect in", values, "exeAffect");
            return (Criteria) this;
        }

        public Criteria andExeAffectNotIn(List<String> values) {
            addCriterion("exe_affect not in", values, "exeAffect");
            return (Criteria) this;
        }

        public Criteria andExeAffectBetween(String value1, String value2) {
            addCriterion("exe_affect between", value1, value2, "exeAffect");
            return (Criteria) this;
        }

        public Criteria andExeAffectNotBetween(String value1, String value2) {
            addCriterion("exe_affect not between", value1, value2, "exeAffect");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNull() {
            addCriterion("create_date is null");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNotNull() {
            addCriterion("create_date is not null");
            return (Criteria) this;
        }

        public Criteria andCreateDateEqualTo(Date value) {
            addCriterion("create_date =", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotEqualTo(Date value) {
            addCriterion("create_date <>", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThan(Date value) {
            addCriterion("create_date >", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThanOrEqualTo(Date value) {
            addCriterion("create_date >=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThan(Date value) {
            addCriterion("create_date <", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThanOrEqualTo(Date value) {
            addCriterion("create_date <=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateIn(List<Date> values) {
            addCriterion("create_date in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotIn(List<Date> values) {
            addCriterion("create_date not in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateBetween(Date value1, Date value2) {
            addCriterion("create_date between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotBetween(Date value1, Date value2) {
            addCriterion("create_date not between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateIsNull() {
            addCriterion("update_date is null");
            return (Criteria) this;
        }

        public Criteria andUpdateDateIsNotNull() {
            addCriterion("update_date is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateDateEqualTo(Date value) {
            addCriterion("update_date =", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateNotEqualTo(Date value) {
            addCriterion("update_date <>", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateGreaterThan(Date value) {
            addCriterion("update_date >", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateGreaterThanOrEqualTo(Date value) {
            addCriterion("update_date >=", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateLessThan(Date value) {
            addCriterion("update_date <", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateLessThanOrEqualTo(Date value) {
            addCriterion("update_date <=", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateIn(List<Date> values) {
            addCriterion("update_date in", values, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateNotIn(List<Date> values) {
            addCriterion("update_date not in", values, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateBetween(Date value1, Date value2) {
            addCriterion("update_date between", value1, value2, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateNotBetween(Date value1, Date value2) {
            addCriterion("update_date not between", value1, value2, "updateDate");
            return (Criteria) this;
        }

        public Criteria andIsValidIsNull() {
            addCriterion("is_valid is null");
            return (Criteria) this;
        }

        public Criteria andIsValidIsNotNull() {
            addCriterion("is_valid is not null");
            return (Criteria) this;
        }

        public Criteria andIsValidEqualTo(Integer value) {
            addCriterion("is_valid =", value, "isValid");
            return (Criteria) this;
        }

        public Criteria andIsValidNotEqualTo(Integer value) {
            addCriterion("is_valid <>", value, "isValid");
            return (Criteria) this;
        }

        public Criteria andIsValidGreaterThan(Integer value) {
            addCriterion("is_valid >", value, "isValid");
            return (Criteria) this;
        }

        public Criteria andIsValidGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_valid >=", value, "isValid");
            return (Criteria) this;
        }

        public Criteria andIsValidLessThan(Integer value) {
            addCriterion("is_valid <", value, "isValid");
            return (Criteria) this;
        }

        public Criteria andIsValidLessThanOrEqualTo(Integer value) {
            addCriterion("is_valid <=", value, "isValid");
            return (Criteria) this;
        }

        public Criteria andIsValidIn(List<Integer> values) {
            addCriterion("is_valid in", values, "isValid");
            return (Criteria) this;
        }

        public Criteria andIsValidNotIn(List<Integer> values) {
            addCriterion("is_valid not in", values, "isValid");
            return (Criteria) this;
        }

        public Criteria andIsValidBetween(Integer value1, Integer value2) {
            addCriterion("is_valid between", value1, value2, "isValid");
            return (Criteria) this;
        }

        public Criteria andIsValidNotBetween(Integer value1, Integer value2) {
            addCriterion("is_valid not between", value1, value2, "isValid");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}